<template>
  <div id="dz_market" class="page in"  >
     <div class="container" >     
      <header>
        <a @click="$utils.gotopage('','back')" class="pa back"></a>		 
        <p>市场预测表</p>
        <a href="javascript:;" class="pa add" @click="ufgoto"></a>
      </header>
 
        <div class="price-wrap" style="background: none">
            <div class="configInfo-li marketInfo-li">
                <div class="flex-wrap-between config-other">
                <span>机型/主机:</span>
                <span>{{modelinfo.hostmodel}}</span>
                </div>
                <div class="flex-wrap-between config-other">
                <span>机型/激光器:</span>
                <span>{{modelinfo.lasermodel}}</span>
                </div>
                <div class="flex-wrap-between config-other">
                <span>合同状态:</span>
                <span>{{modelinfo.agreementstatus}}</span>
                </div>
                <div class="flex-wrap-between config-other">
                <span>备注(发机时间):</span>
                <span>{{modelinfo.markte_time}}</span>
                </div>
                <div class="flex-wrap-between config-other">
                <span>机型书写:</span>
                <span>{{modelinfo.modelcode}}</span>
                </div>
                <div class="flex-wrap-between config-other">
                <span>项目中心:</span>
                <span>{{modelinfo.itemcenter}}</span>
                </div>
            </div>  
        </div>      
    </div>
  </div>
</template>


<script>
var mySelf;  
export default {
    data() {
      return {
        modelinfo:[],
        param:[]
      }
    },
    beforeCreate() {
			this.$myUtils.isLoginGotoPage();	
    },
    onLoad(param) {           
      this.param = param;
    },
    methods: {
      init:function() {
        let market_id = this.param['id'];
        this.$myUtils.myRequest({
          url: '/Market/view',
          data:{'market_id':market_id},
          'method':'POST'
				}).then(res => {					 
            mySelf.modelinfo = res.data.data; 
            return uni.showToast({
                title: '正在加载数据',
                icon:'loading',
                duration:300
                          });
        })	        
      },
      ufgoto:function() {
          uni.navigateTo({
            url: '/pages/personal/marketadd'
          });
      } 
       

      
    },
    mounted() {
      mySelf = this;
      this.init();
    },
}
</script>